package com.cloud.school.bus.teacherhelper.base.utils;

import java.security.PublicKey;

import android.content.Context;

import com.android.support.jhf.utils.ConfigManager;

/**
 * 用来存储各种id
 * 
 * @author lenovo
 * 
 */
public class AppUserId {
	
	public static final String USERNAME = "username";
	public static final String PASSWORD = "password";
	
	public static void setUserName(Context context, String username) {
		ConfigManager.getInstance(context).putString(USERNAME, username);
	}
	
	public static String getUserName(Context context){
		return ConfigManager.getInstance(context).loadString(USERNAME);
	}
	
	public static void setPassword(Context context, String password) {
		ConfigManager.getInstance(context).putString(PASSWORD, password);
	}
	
	public static String getPassword(Context context){
		return ConfigManager.getInstance(context).loadString(PASSWORD);
	}
	
}
